﻿//************************************************************************************************
// Copyright © 2012 Steven M. Cohn. All Rights Reserved.
//
//************************************************************************************************ 

namespace CookieChipper
{
	using System;

	internal partial class CompletePage : WizardPage
	{

		public CompletePage ()
		{
			InitializeComponent();
			base.Description = "Thank you for using the CookieChipper Backup/Restore Wizard";
		}


		public override string Information
		{
			get
			{
				return base.Information;
			}

			set
			{
				base.Information = value;
				informationLabel.Text = value;
			}
		}

		public bool IsBackup
		{
			set
			{
				completeLabel.Text = value
					? "Backup completed and saved to:"
					: "Restore complete";
			}
		}


		private void DoVisibleChanged (object sender, EventArgs e)
		{
			PageState = PageStates.Complete;
		}
	}
}
